<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table border="1">
	<tr>
		<th>ID</th>
		<th>NAME</th>
		<th>SEX</th>
		<th>SAL</th>
		<th>BIRTH</th>
	</tr>
	<c:forEach items="${customers }" var="c">
		<tr>
			<td>${c.id }</td>
			<td>${c.cname }</td>
				<c:if test="${c.sex eq true}">
					<td>male</td>
				</c:if>
				<c:if test="${c.sex eq false}">
					<td>female</td>
				</c:if>
				<td>${c.sal }</td>
			、<td>
				<fmt:formatDate value="${c.birth }" pattern="yyy-MM-dd"/>
			</td>
			
		</tr>
	</c:forEach>
	<tr></tr>
</table>
</body>
</html>